import { Component, OnInit } from '@angular/core';

@Component({
    selector: 'app-pipe-fun',
    templateUrl: './pipe-fun.component.html',
    styleUrls: ['./pipe-fun.component.less']
})
export class PipeFunComponent implements OnInit {

    user = {
        name: "tom",
        age: 23
    };

    num1 = 1234567.55468;
    num2 = 0.98765;
    num3 = 1.1;

    day = new Date();
    dayStr = "2019/12/25 17:25:1";

    stus = {
        a:60,
        b:40,
        c:80,
        d:50
    }

    sortFun(a,b){
        console.log(a,b);
        return a.value-b.value;
    }

    constructor() { }

    ngOnInit() {
    }

}
